<?php
class ControllerCommonCreatrdp extends Controller {
    public function index()
    {
        if (!$this->customer->isLogged()) {
            $this->session->data['redirect'] = $this->url->link('common/creatdp', '', 'SSL');

            $this->redirect($this->url->link('account/login', '', 'SSL'));
        }




         if ($this->request->get['type'] == 'rtx') {
             header('Content-Type: application/octet-stream;charset=UTF-8LE"');
             header('Content-Disposition: attachment; filename="UserManager.rdp');
             header('Expires: 0');
             header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
             header('Pragma: public');

             if (ob_get_level()) ob_end_clean();

             $info = 'redirectclipboard:i:1
redirectposdevices:i:0
redirectprinters:i:1
redirectcomports:i:1
redirectsmartcards:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
session bpp:i:32
prompt for credentials on client:i:1
span monitors:i:1
use multimon:i:1
remoteapplicationmode:i:1
server port:i:' . $this->request->get['port'] . '
allow font smoothing:i:1
promptcredentialonce:i:1
authentication level:i:2
gatewayusagemethod:i:2
gatewayprofileusagemethod:i:0
gatewaycredentialssource:i:0
full address:s:' . $this->request->get['ip'] . '
alternate shell:s:||UserManager
remoteapplicationprogram:s:||UserManager
gatewayhostname:s:
remoteapplicationname:s:UserManager.exe
remoteapplicationcmdline:s:
';
             echo $info;
         }
        if ($this->request->get['type'] == 'yzm') {
            header('Content-Type: application/octet-stream;charset=UTF-8LE"');
            header('Content-Disposition: attachment; filename="mstsc.rdp');
            header('Expires: 0');
            header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
            header('Pragma: public');

            if (ob_get_level()) ob_end_clean();

            $info = 'screen mode id:i:2
use multimon:i:0
desktopwidth:i:1366
desktopheight:i:768
session bpp:i:32
winposstr:s:0,3,0,64,1025,728
compression:i:1
keyboardhook:i:2
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:2
displayconnectionbar:i:1
disable wallpaper:i:0
allow font smoothing:i:1
allow desktop composition:i:1
disable full window drag:i:0
disable menu anims:i:0
disable themes:i:0
disable cursor setting:i:0
bitmapcachepersistenable:i:1
server port:i:' . $this->request->get['port'] . '
full address:s:' . $this->request->get['ip'] . '
audiomode:i:0
redirectprinters:i:1
redirectcomports:i:1
redirectsmartcards:i:1
redirectclipboard:i:1
redirectposdevices:i:0
redirectdirectx:i:1
autoreconnection enabled:i:1
authentication level:i:0
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:0
alternate shell:s:
shell working directory:s:
gatewayhostname:s:
gatewayusagemethod:i:4
gatewaycredentialssource:i:4
gatewayprofileusagemethod:i:0
promptcredentialonce:i:1
use redirection server name:i:0';
            echo $info;
        }
        if ($this->request->get['type'] == 'gjp') {
            header('Content-Type: application/octet-stream;charset=UTF-8LE"');
            header('Content-Disposition: attachment; filename="GraspC.rdp');
            header('Expires: 0');
            header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
            header('Pragma: public');

            if (ob_get_level()) ob_end_clean();
            $info='redirectclipboard:i:1
redirectposdevices:i:0
redirectprinters:i:1
redirectcomports:i:1
redirectsmartcards:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
session bpp:i:32
prompt for credentials on client:i:1
span monitors:i:1
use multimon:i:1
remoteapplicationmode:i:1
server port:i:' . $this->request->get['port'] . '
allow font smoothing:i:1
promptcredentialonce:i:1
authentication level:i:2
gatewayusagemethod:i:2
gatewayprofileusagemethod:i:0
gatewaycredentialssource:i:0
full address:s:' . $this->request->get['ip'] . '
alternate shell:s:||GraspC
remoteapplicationprogram:s:||GraspC
gatewayhostname:s:
remoteapplicationname:s:GJPCYB
remoteapplicationcmdline:s:
';
            echo $info;
        }
        if ($this->request->get['type'] == 'zhj') {
            header('Content-Type: application/octet-stream;charset=UTF-8LE"');
            header('Content-Disposition: attachment; filename="KDMain.rdp');
            header('Expires: 0');
            header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
            header('Pragma: public');

            if (ob_get_level()) ob_end_clean();
$info='redirectclipboard:i:1
redirectposdevices:i:0
redirectprinters:i:1
redirectcomports:i:1
redirectsmartcards:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
session bpp:i:32
prompt for credentials on client:i:1
span monitors:i:1
use multimon:i:1
remoteapplicationmode:i:1
server port:i:' . $this->request->get['port'] . '
allow font smoothing:i:1
promptcredentialonce:i:1
authentication level:i:2
gatewayusagemethod:i:2
gatewayprofileusagemethod:i:0
gatewaycredentialssource:i:0
full address:s:' . $this->request->get['ip'] . '
alternate shell:s:||KDMain
remoteapplicationprogram:s:||KDMain
gatewayhostname:s:
remoteapplicationname:s:ZHJ
remoteapplicationcmdline:s:
';
            echo $info;
        }
    }
}
?>